<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>装修验收-列表</title>
<script>
function setInspectionRequisitionId(id){
	parent.setSelectItem(id);
}
function setSize() {
  	parent.window.document.all('inspectionRequisitionList').style.height=document.body.scrollHeight;
}
</script>
</head>
<body onload="setSize()">
<div>
<ec:ceTable items="resultDataList"
	action="${ctx}/renovation_inspectionRequisitionAction.do?method=queryInspectionRequisitionByPage"
	var="item"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15">
	<ec:ceRow styleClass="grid" ondblclick="javascript:parent.openDetailPage('${item.renovateLicenceID}');" onclick="setInspectionRequisitionId('${item.keyword}')"  onContextMenu="return ShowContextMenu(event,'quick_rightmenu')">
		<ec:ceColumn headerCell="pmsHeadrCell" title="房号" property="houseNumber"   width="10%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="装修许可证号" property="renovateLicenceNO"   width="19%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="业主姓名" property="owner"  width="11%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="申请验收时间" property="inspectionDateStr"  sortable="true" width="11%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="初验结果" property="firstInspectionResult"   width="12%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="复验结果" property="reinspectionResult"  width="15%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="接单时间" property="annalDate"  width="14%"><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.annalDate}" /></ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="接单人" property="annalMan"  width="8%"/>
	</ec:ceRow>
</ec:ceTable>
</div>
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_menu2" onMouseOver="showmy2menu('quick_rightmenu')"  onMouseOut="hidden2menu('quick_rightmenu')" >
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
       <pms:AuthTag authName="renovation_inspectionRequisitionAction.do?method=addInspectionRequisition">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="javascript:parent.itemAdd();"onFocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" alt="新建" width="16" height="16" border="0" align="absbottom" /> 新 建</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="renovation_inspectionRequisitionAction.do?method=editInspectionRequisition">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="javascript:parent.itemEdit();"onFocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" alt="修 改" width="16" height="16" border="0" align="absbottom" />&nbsp;修 改</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="renovation_inspectionRequisitionAction.do?method=deleteInspectionRequisition">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="javascript:parent.itemDelete();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /> 删 除</a></td>
        </tr>
        <tr>
          <td class="hrpading"><table width="95%" border="0" align="left" cellpadding="0" cellspacing="0">
            <tr>
              <td class="quickMenu_line"></td>
            </tr>
          </table></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="renovation_firstInspectionAction.do?method=editFirstInspection">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="parent.openFirstInspection()" onFocus="this.blur()"><img src="${ctx}/images/ico_chuyan.gif" alt="竣工初验" width="16" height="16" border="0" align="absbottom" />&nbsp;竣工初验</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="renovation_reinspectionAction.do?method=editReinspection">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="parent.openReinspection();" onFocus="this.blur()"><img src="${ctx}/images/ico_fuyan.gif" alt="竣工复验" width="16" height="16" border="0" align="absbottom" />&nbsp;竣工复验</a></td>
        </tr>
        </pms:AuthTag>
	</table></td>
    </tr>
  </table>
 <script type="text/javascript">

	var div1=document.getElementById('quick_rightmenu');
	if(div1.getElementsByTagName("tr").length==1){
	div1.innerHTML="";
	}
</script>
</div>
</body>
</html>